<div class="ribbon"></div>
<div id="slider" class="nivoSlider">
<?php
if($imageList && count($imageList) > 0){
	$i = 1;
	foreach ($imageList as $image){
?>
	<img src="./uploads/default/files/<?php echo $image->filename?>" alt="" title="#htmlcaption_<?php echo $i?>" />
<?php
	$i++;
	}
}
?>
</div>
<?php
if($imageList){
	$i = 1;
	foreach ($imageList as $image){
?>
<div id="htmlcaption_<?php echo $i;?>" class="nivo-html-caption">
	<div class="caption-top"><?php echo $image->description?></div>
	<div class="caption-separator"></div>
	<div class="caption-bottom"><?php echo $image->name?></div>
</div>
<?php
	$i++;
	}
}
?>